#here we should set some default configuration. support threshold, exclude patterns
import os, sys
from logs import apachelogs

#or uncomment

path = "../../sample_data/"

log_line_reader = lambda x:  apachelogs.ApacheLogLine(x)

if os.path.isdir(path) :
    filename = map(lambda x: os.path.join(path, x), os.listdir(path))
    filename = filter(lambda x: os.path.isfile(x), filename)
else:
 # print "invalid path, terminating"
  sys.exit(2)

#applied onlu on simple session ie [page1, page2]
#can be used to filter session length or contents
session_filter_fn = lambda x: len(x) > 1

remove_query_string = True
generate_sql_scr = False
remove_robot = False
clean_log = False
output_path = "../../data/"

#database config.
#including hostnmae,username,password,database name,charset
db={}
db['host']='localhost'
db['user']='root'
db['passwd']='123456'
db['db']='jsbc'
db['charset']='utf-8'

